package com.hmy.finance.service.receipt.rdto;

import lombok.Data;

import java.math.BigDecimal;

/**
 * 账户动账结果
 *
 * @author songkf
 */
@Data
public class TradeRdto implements java.io.Serializable {
    private static final long serialVersionUID = -2548996729520839361L;
    /**
     * 账户ID
     */
    private Long accountId;
    /**
     * 动账金额
     */
    private BigDecimal amount;
    /**
     * 流水ID
     */
    private Long tradeId;
    /**
     * 动账结果
     */
    private Boolean result = Boolean.TRUE;

    public TradeRdto(Long accountId, BigDecimal amount, Long tradeId) {
        this.accountId = accountId;
        this.amount = amount;
        this.tradeId = tradeId;
    }

    public Boolean isSuccess() {
        return result;
    }


}
